package cn.lisens.demo.entity;

import java.io.Serializable;

import com.fasterxml.jackson.databind.annotation.JsonSerialize;

import cn.lisens.sensitive.PhoneDesensitizeSerializer;
import lombok.Data;
import lombok.ToString;

@Data
@ToString
public class User implements Serializable{
	private static final long serialVersionUID = 1L;
	
	private String userCode;
	private String userName;
	@JsonSerialize(using = PhoneDesensitizeSerializer.class)
	private String phone = "13845127693";

	public String getUserCode() {
		return userCode;
	}

	public void setUserCode(String userCode) {
		this.userCode = userCode;
	}

	public String getUserName() {
		return userName;
	}

	public void setUserName(String userName) {
		this.userName = userName;
	}

	public String getPhone() {
		return phone;
	}

	public void setPhone(String phone) {
		this.phone = phone;
	}
}
